<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c"       uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="huatek"  uri="http://www.huatek.com/j2ee" %>
<form:form modelAttribute="efwDataRole" name="ec">
<fieldset>
<legend>查询条件</legend>
<div class="condition_left">
<table width="80%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="20%" align="right">数据角色名称：</td>
		<td width="20%"><input type="text" value="${t_daName}" name="ht_t.daName" id="ht_t.daName" /></td>
        <td width="10%" align="right">状态：</td>
        <td width="15%">
        	<select name="ht_t.status" id="ht_t.status" style="width: 95%">
				<option value="">---请选择---</option>
				<option value="A"
					<c:if test="${t_status == 'A'}">selected</c:if>>生效</option>
				<option value="D"
					<c:if test="${t_status == 'D'}">selected</c:if>>失效</option>
			</select>
		</td>
		<td width="15%" align="right">菜单名称：</td>
		<td width="20%"><input type="text" value="${dataName}" name="dataName" id="dataName" /></td>
    </tr>
</table>
</div>
</fieldset>
<div class="widget">
<div class="head"><h5 class="iFrames">角色信息</h5>
</div>
<div id="tableBody3">
<table width="98.5%"  border="1" cellspacing="0" cellpadding="0" >
    <thead>
	<tr>
		<th width="40" align="center"><input type="checkbox" name="id_selector" value="1" onclick="checkAll(this)"/></th>
		<th>数据角色名称</th>
		<th>状态</th>
        <th>描述</th>
	</tr>
	</thead>
	<tbody>
	<c:forEach var="authority" items="${pageBean.dataList}" varStatus="s">
		<tr <c:if test="${!(s.index%2==0) }"> class="tdbgcolor"</c:if>>
			<td align="center"><input type="checkbox" value="${authority.id}" name="id" ></td>
			<td><c:out value="${authority.daName}"/></td>
			<td>
				<c:if test="${authority.status eq 'A'}">生效</c:if>
				<c:if test="${authority.status eq 'D'}">失效</c:if>
			</td>
			<td><div title="${authority.description}"><huatek:out value="${authority.description}" size="22" encode="true"/></div></td>
		</tr>
	</c:forEach>
	</tbody>
</table>
</div>
</div>
</form:form>
